package struts02;
import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.job.model.Account;
import com.job.service.AccountService;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:spring-beans.xml")
public class test {
	@Autowired 
	private AccountService accountService;
	@Test
	public void tester() {	
		accountService.save(new Account("13313","weqeeq","sadsada"));
		List<Account> accounts=accountService.all();
		for(Account account:accounts) {
			System.out.println(account);
		}
	
	}

}
